.TH "Zebulon::CoralAHRS::SetOutputMode" 3 "13 Oct 2009" "Version 2" "zebulon" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Zebulon::CoralAHRS::SetOutputMode \- 
.PP
This message changes the output mode on the Coral AHRSTM module. The output mode is a 4-bit field in which bits 0 and 1 choose an orientation data type (00 = None, 01 = Quaternion, 10 = Euler Angles, 11 = Orientation Matrix), and bits 2 and 3 choose a sensor data type (00 = None, 01 = Calibrated, 10 = Raw). If an invalid mode is selected, no data will be output until a proper mode is selected.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <setoutputmode.h>\fP
.PP
Inherits \fBZebulon::CoralAHRS::Message\fP.
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBOrientationType\fP { \fBNone\fP =  0, \fBQuaternion\fP =  0x01, \fBEulerAngles\fP =  0x02, \fBOrientationMatrix\fP =  0x03 }"
.br
.ti -1c
.RI "enum \fBSensorType\fP { \fBCalibrated\fP =  0x04, \fBRaw\fP =  0x08 }"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBSetOutputMode\fP ()"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "\fBSetOutputMode\fP (const \fBSetOutputMode\fP &message)"
.br
.RI "\fICopy constructor. \fP"
.ti -1c
.RI "\fB~SetOutputMode\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "virtual int \fBWriteMessageBody\fP (CxUtils::Packet &packet) const "
.br
.RI "\fIWrites contents of message body to packet. \fP"
.ti -1c
.RI "virtual int \fBReadMessageBody\fP (const CxUtils::Packet &packet)"
.br
.RI "\fIReads contents of message body from the packet, saving to internal data members. \fP"
.ti -1c
.RI "virtual \fBMessage\fP * \fBClone\fP () const "
.br
.ti -1c
.RI "virtual void \fBPrint\fP () const "
.br
.RI "\fIPrints data to console window. \fP"
.ti -1c
.RI "\fBSetOutputMode\fP & \fBoperator=\fP (const \fBSetOutputMode\fP &message)"
.br
.RI "\fISets equal to. \fP"
.in -1c
.SS "Public Attributes"

.in +1c
.ti -1c
.RI "unsigned char \fBmMode\fP"
.br
.RI "\fIMode to output in (e.g. Quaternion | Calibrated). \fP"
.in -1c
.SH "Detailed Description"
.PP 
This message changes the output mode on the Coral AHRSTM module. The output mode is a 4-bit field in which bits 0 and 1 choose an orientation data type (00 = None, 01 = Quaternion, 10 = Euler Angles, 11 = Orientation Matrix), and bits 2 and 3 choose a sensor data type (00 = None, 01 = Calibrated, 10 = Raw). If an invalid mode is selected, no data will be output until a proper mode is selected. 
.SH "Member Function Documentation"
.PP 
.SS "int SetOutputMode::ReadMessageBody (const CxUtils::Packet & packet)\fC [virtual]\fP"
.PP
Reads contents of message body from the packet, saving to internal data members. \fBParameters:\fP
.RS 4
\fIpacket\fP The packet to read data from.
.RE
.PP
\fBReturns:\fP
.RS 4
Number of bytes read from packet. 
.RE
.PP

.PP
Implements \fBZebulon::CoralAHRS::Message\fP.
.SS "int SetOutputMode::WriteMessageBody (CxUtils::Packet & packet) const\fC [virtual]\fP"
.PP
Writes contents of message body to packet. \fBParameters:\fP
.RS 4
\fIpacket\fP The packet to write data to.
.RE
.PP
\fBReturns:\fP
.RS 4
Number of bytes written to packet. 
.RE
.PP

.PP
Implements \fBZebulon::CoralAHRS::Message\fP.

.SH "Author"
.PP 
Generated automatically by Doxygen for zebulon from the source code.
